import { ComponentStyle, DiyComponent } from '@/components/DiyEditor/util'

/** 图片展示属性 */
export interface SeckillProperty {
  // 组件样式
  style: ComponentStyle
  height: number
  txtPadding:number
  weight:boolean
  txtFontSize:number
  txtHeight:number
  showTxt:boolean
  txt:string
  endTime:string
  startTime:string
  txtColor:string
  skillTxtColor:string
  skillFontSize:number
  skillWeight:boolean
}

// 定义组件
export const component = {
  id: 'Seckill',
  name: '倒计时',
  icon: 'ep:picture',
  property: {
    style: {
      bgType: 'color',
      bgColor: '#fff',
      marginBottom: 8
    } as ComponentStyle
  }
} as DiyComponent<SeckillProperty>
